home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 12 - 1996 / 12.12 Dec 96 / Async I⁄O Code / Sources / DropShell.r < prev    next >
Encoding:
Text File  |  1996-02-16  |  9.4 KB  |  561 lines  |  [TEXT/MPS ]

  1. #define SystemSevenOrLater 1
  2.  
  3. #include "Types.r"
  4. #include "SysTypes.r"
  5. #include "BalloonTypes.r"
  6. #include "AEUserTermTypes.r"
  7.  
  8. resource 'MENU' (128, "Apple") {
  9.     128,
  10.     textMenuProc,
  11.     0x7FFFFFFD,
  12.     enabled,
  13.     apple,
  14.     {    /* array: 2 elements */
  15.         /* [1] */
  16.         "About ???…", noIcon, noKey, noMark, plain,
  17.         /* [2] */
  18.         "-", noIcon, noKey, noMark, plain
  19.     }
  20. };
  21.  
  22. resource 'MENU' (129, "File") {
  23.     129,
  24.     textMenuProc,
  25.     allEnabled,
  26.     enabled,
  27.     "File",
  28.     {    /* array: 2 elements */
  29.         /* [1] */
  30.         "Select File…", noIcon, "O", noMark, plain,
  31.         /* [2] */
  32.         "Quit", noIcon, "Q", noMark, plain
  33.     }
  34. };
  35.  
  36. resource 'hmnu' (128, purgeable) {
  37.     2,
  38.     0,
  39.     0,
  40.     0,
  41.     HMSkipItem {
  42.  
  43.     },
  44.     {    /* array HMenuArray: 2 elements */
  45.         /* [1] */
  46.         HMSkipItem {
  47.  
  48.         }        ,
  49.         /* [2] */
  50.         HMStringResItem {
  51.             128,
  52.             1,
  53.             128,
  54.             1,
  55.             0,
  56.             0,
  57.             0,
  58.             0
  59.         }
  60.     }
  61. };
  62.  
  63. resource 'hmnu' (129, purgeable) {
  64.     2,
  65.     0,
  66.     0,
  67.     0,
  68.     HMSkipItem {
  69.  
  70.     },
  71.     {    /* array HMenuArray: 3 elements */
  72.         /* [1] */
  73.         HMStringResItem {
  74.             129,
  75.             1,
  76.             129,
  77.             2,
  78.             129,
  79.             3,
  80.             129,
  81.             4
  82.         },
  83.         /* [2] */
  84.         HMStringResItem {
  85.             129,
  86.             5,
  87.             129,
  88.             6,
  89.             0,
  90.             0,
  91.             0,
  92.             0
  93.         },
  94.         /* [3] */
  95.         HMStringResItem {
  96.             129,
  97.             7,
  98.             129,
  99.             8,
  100.             0,
  101.             0,
  102.             0,
  103.             0
  104.         }
  105.     }
  106. };
  107.  
  108. resource 'ALRT' (128, purgeable) {
  109.     {75, 79, 198, 354},
  110.     128,
  111.     {    /* array: 4 elements */
  112.         /* [1] */
  113.         OK, visible, silent,
  114.         /* [2] */
  115.         OK, visible, silent,
  116.         /* [3] */
  117.         OK, visible, silent,
  118.         /* [4] */
  119.         OK, visible, silent
  120.     },
  121.     alertPositionMainScreen
  122. };
  123.  
  124. resource 'ALRT' (200, purgeable) {
  125.     {100, 120, 224, 452},
  126.     200,
  127.     {    /* array: 4 elements */
  128.         /* [1] */
  129.         OK, visible, silent,
  130.         /* [2] */
  131.         OK, visible, silent,
  132.         /* [3] */
  133.         OK, visible, silent,
  134.         /* [4] */
  135.         OK, visible, silent
  136.     },
  137.     alertPositionMainScreen
  138. };
  139.  
  140. resource 'DITL' (128, purgeable) {
  141.     {    /* array DITLarray: 3 elements */
  142.         /* [1] */
  143.         {97, 198, 117, 270},
  144.         Button {
  145.             enabled,
  146.             "OK"
  147.         },
  148.         /* [2] */
  149.         {8, 8, 87, 271},
  150.         StaticText {
  151.             disabled,
  152.             "DropShell - the simplest program possibl"
  153.             "e with the DS Technology!"
  154.         },
  155.         /* [3] */
  156.         {0, 0, 0, 0},
  157.         HelpItem {
  158.             disabled,
  159.             HMScanhdlg {
  160.                 1
  161.             }
  162.         }
  163.     }
  164. };
  165.  
  166. resource 'DITL' (200, purgeable) {
  167.     {    /* array DITLarray: 4 elements */
  168.         /* [1] */
  169.         {92, 246, 112, 318},
  170.         Button {
  171.             enabled,
  172.             "OK"
  173.         },
  174.         /* [2] */
  175.         {11, 73, 75, 318},
  176.         StaticText {
  177.             disabled,
  178.             "^0"
  179.         },
  180.         /* [3] */
  181.         {11, 11, 43, 43},
  182.         Icon {
  183.             disabled,
  184.             0
  185.         },
  186.         /* [4] */
  187.         {96, 11, 112, 100},
  188.         StaticText {
  189.             disabled,
  190.             "Error #^1"
  191.         }
  192.     }
  193. };
  194.  
  195. resource 'hdlg' (128, purgeable) {
  196.     2,
  197.     0,
  198.     4,
  199.     0,
  200.     3,
  201.     HMSkipItem {
  202.  
  203.     },
  204.     {    /* array HDialogArray: 2 elements */
  205.         /* [1] */
  206.         HMStringResItem {
  207.             {0, 0},
  208.             {0, 0, 0, 0},
  209.             128,
  210.             2,
  211.             0,
  212.             0,
  213.             0,
  214.             0,
  215.             0,
  216.             0
  217.         },
  218.         /* [2] */
  219.         HMStringResItem {
  220.             {0, 0},
  221.             {0, 0, 0, 0},
  222.             0,
  223.             0,
  224.             128,
  225.             3,
  226.             0,
  227.             0,
  228.             0,
  229.             0
  230.         }
  231.     }
  232. };
  233.  
  234. resource 'hdlg' (200, purgeable) {
  235.     2,
  236.     0,
  237.     4,
  238.     0,
  239.     3,
  240.     HMSkipItem {
  241.  
  242.     },
  243.     {    /* array HDialogArray: 4 elements */
  244.         /* [1] */
  245.         HMStringResItem {
  246.             {0, 0},
  247.             {0, 0, 0, 0},
  248.             200,
  249.             1,
  250.             0,
  251.             0,
  252.             0,
  253.             0,
  254.             0,
  255.             0
  256.         },
  257.         /* [2] */
  258.         HMStringResItem {
  259.             {0, 0},
  260.             {0, 0, 0, 0},
  261.             0,
  262.             0,
  263.             200,
  264.             2,
  265.             0,
  266.             0,
  267.             0,
  268.             0
  269.         },
  270.         /* [3] */
  271.         HMSkipItem {
  272.  
  273.         },
  274.         /* [4] */
  275.         HMStringResItem {
  276.             {0, 0},
  277.             {0, 0, 0, 0},
  278.             0,
  279.             0,
  280.             200,
  281.             3,
  282.             0,
  283.             0,
  284.             0,
  285.             0
  286.         }
  287.     }
  288. };
  289.  
  290. resource 'STR#' (128, purgeable) {
  291.     {    /* array StringArray: 3 elements */
  292.         /* [1] */
  293.         "Everything you always wanted to know abo"
  294.         "ut ???, but were afraid to ask",
  295.         /* [2] */
  296.         "Click here to dismiss this informative d"
  297.         "ialog.",
  298.         /* [3] */
  299.         "This text describes the product, its aut"
  300.         "hor, and why!"
  301.     }
  302. };
  303.  
  304. resource 'STR#' (129, purgeable) {
  305.     {    /* array StringArray: 8 elements */
  306.         /* [1] */
  307.         "Use this menu to select a file and to ex"
  308.         "it the program.",
  309.         /* [2] */
  310.         "Use this menu to select a file and to ex"
  311.         "it the program. This menu is unavailable"
  312.         " now.",
  313.         /* [3] */
  314.         "Use this menu to select a file and to ex"
  315.         "it the program. This menu is unavailable"
  316.         " until you respond to the alert box or d"
  317.         "ialog box.",
  318.         /* [4] */
  319.         "This command is unavailable until you re"
  320.         "spond to the alert box or dialog box.",
  321.         /* [5] */
  322.         "Use this command to select a file.",
  323.         /* [6] */
  324.         "Use this command to select a file. Not a"
  325.         "vailable for some strange reason.",
  326.         /* [7] */
  327.         "Use this command to exit the program.",
  328.         /* [8] */
  329.         "Use this command to exit the program. No"
  330.         "t available for some strange reason."
  331.     }
  332. };
  333.  
  334. resource 'STR#' (100) {
  335.     {    /* array StringArray: 2 elements */
  336.         /* [1] */
  337.         "This application requires Apple events. "
  338.         " Please upgrade to System 7.0 or later t"
  339.         "o use.",
  340.         /* [2] */
  341.         "An error occured during Apple event proc"
  342.         "essing."
  343.     }
  344. };
  345.  
  346. resource 'STR#' (200, purgeable) {
  347.     {    /* array StringArray: 3 elements */
  348.         /* [1] */
  349.         "Click here to dismiss this informative d"
  350.         "ialog.",
  351.         /* [2] */
  352.         "This text describes the error that occur"
  353.         "ed.",
  354.         /* [3] */
  355.         "This error ID gives more specific detail"
  356.         "s of the error."
  357.     }
  358. };
  359.  
  360. resource 'SIZE' (0) {
  361.     reserved,
  362.     acceptSuspendResumeEvents,
  363.     reserved,
  364.     canBackground,
  365.     multiFinderAware,
  366.     backgroundAndForeground,
  367.     dontGetFrontClicks,
  368.     ignoreChildDiedEvents,
  369.     is32BitCompatible,
  370.     isHighLevelEventAware,
  371.     localAndRemoteHLEvents,
  372.     notStationeryAware,
  373.     dontUseTextEditServices,
  374.     reserved,
  375.     reserved,
  376.     reserved,
  377.     102400,
  378.     102400
  379. };
  380.  
  381. resource 'SIZE' (-1) {
  382.     reserved,
  383.     acceptSuspendResumeEvents,
  384.     reserved,
  385.     cannotBackground,
  386.     multiFinderAware,
  387.     backgroundAndForeground,
  388.     dontGetFrontClicks,
  389.     ignoreChildDiedEvents,
  390.     is32BitCompatible,
  391.     isHighLevelEventAware,
  392.     localAndRemoteHLEvents,
  393.     notStationeryAware,
  394.     dontUseTextEditServices,
  395.     reserved,
  396.     reserved,
  397.     reserved,
  398.     393216,
  399.     393216
  400. };
  401.  
  402. resource 'FREF' (128) {
  403.     'APPL',
  404.     0,
  405.     ""
  406. };
  407.  
  408. resource 'FREF' (129) {
  409.     '****',
  410.     1,
  411.     ""
  412. };
  413.  
  414. resource 'hfdr' (-5696) {
  415.     2,
  416.     0,
  417.     0,
  418.     0,
  419.     {    /* array HFdrArray: 1 elements */
  420.         /* [1] */
  421.         HMStringItem {
  422.             "Drag any file onto this icon, and I will"
  423.             " magically ???"
  424.         }
  425.     }
  426. };
  427.  
  428. resource 'WIND' (128) {
  429.     {79, 171, 104, 470},
  430.     movableDBoxProc,
  431.     visible,
  432.     noGoAway,
  433.     0x0,
  434.     "DropShell Splash Screen",
  435.     centerMainScreen
  436. };
  437.  
  438. resource 'PICT' (128, "Splash") {
  439.     972,
  440.     {0, 0, 25, 299},
  441.     $"1101 A030 39A0 0082 0100 0A00 0000 0000"
  442.     $"1901 3099 0026 0000 0000 0019 0130 0000"
  443.     $"0000 0019 012B 0000 0000 0019 012B 0000"
  444.     $"000A 0000 0000 0019 012B 1602 FFFF C0FB"
  445.     $"0001 3FFC F800 0201 FFFE FB00 01FF E0FA"
  446.     $"001D 02FF FFC0 FB00 017F FEFD 0001 01FC"
  447.     $"FE00 0401 FFFF 01F8 FD00 01FF F8FA 0026"
  448.     $"FEFF 228F EFC3 FF80 00FF FEFF E007 8007"
  449.     $"FF1F FF00 01FF FF07 FE03 FC00 00FF FC3F"
  450.     $"FE7F 03F7 FFE0 2725 5FFF FF8F EFC7 FFC0"
  451.     $"00FF FEFF F00F C00F FF9F FF80 01FF FF1F"
  452.     $"FF87 FF00 00FF FE3F FF7F 03F7 FFE0 2725"
  453.     $"5FFD DF87 EFC7 FFC0 01FF FEFF F80F C01F"
  454.     $"FFDF FF80 00FE 7F9F FFC7 FF80 00FF FE3F"
  455.     $"FF7F 83E6 FFE0 2725 5FF0 9F03 EFCF FFC0"
  456.     $"01FC 6E7F FC1F C03F FFCF 9F80 00FC 63BF"
  457.     $"EFC7 FF80 00FF FF1F 3F3F 83E2 FF60 2725"
  458.     $"03F0 9F03 E7CF CDC0 00FC 4E7F FE1F E03E"
  459.     $"2BCF 0980 00F8 033F EFE7 FFC0 007E FF9E"
  460.     $"133F C3C2 FE00 2725 03F0 1F03 E78F C4C0"
  461.     $"00FC 467C BE3F E07C 2BEF 0180 00F8 007C"
  462.     $"6CE3 CFC0 007C CF9E 033F E3C0 9E00 2725"
  463.     $"03F0 1F03 E787 E4C0 007E 067C 1E3C F078"
  464.     $"02EF 8000 007C 0078 00F3 CDE0 007C 0F9F"
  465.     $"003F E3C0 1E00 2725 03E0 0F03 E787 F0C0"
  466.     $"003F 003C 1E7C 7078 0067 FE00 007F FC78"
  467.     $"00F3 C0E0 007C 0F8F FC3F E3C0 1C00 2725"
  468.     $"01E0 0E01 E783 F800 001F 803C 1E78 7870"
  469.     $"0027 FE00 007F FC70 0073 E0C0 007C 0F0F"
  470.     $"FC3F F3C0 1C00 2725 01E0 0F01 E7C1 FC00"
  471.     $"000F E01C 3EF0 3870 0003 C400 003E 1870"
  472.     $"0071 E0C0 003C 0F07 883C F3C0 1C00 2725"
  473.     $"01E0 0FFF E3C0 FE00 0007 F03C 7AF0 1C70"
  474.     $"0007 8400 003C 1870 0033 E180 007C 1E0F"
  475.     $"081E 7380 1C00 2725 01E0 0FFF C380 7F00"
  476.     $"0007 F83F F0FF FC30 0003 8400 007C 1030"
  477.     $"0033 E280 007C 7A07 081E 3B80 3C00 2725"
  478.     $"01E0 0F6B 8380 7F00 0003 781F D0FF FC38"
  479.     $"0003 8000 003C 0030 0021 FC40 003F F207"
  480.     $"001E 3F80 3C00 2725 01E0 0701 8384 2F80"
  481.     $"00C2 3C1E 50FF 7C18 0003 8000 003C 0018"
  482.     $"0061 FE00 003F F207 001E 1F80 3C00 2725"
  483.     $"01E0 0703 8306 0780 00E0 3C1C 00E0 1C1C"
  484.     $"00C1 8600 003C 001C 0061 8F00 0038 F003"
  485.     $"0C1E 0F80 3C00 2725 01E0 0601 8307 0780"
  486.     $"0070 3C18 00E0 1C1F 0381 FC00 001C 000F"
  487.     $"01A1 8F00 0038 7803 F816 0380 0C00 2725"
  488.     $"01E0 0401 8303 8F00 0078 7818 00E0 0C0F"
  489.     $"FF01 FC00 001E 000F FF21 8380 0018 7803"
  490.     $"F816 0300 0C00 2725 00E0 0601 8101 FE00"
  491.     $"003F F018 00E0 0809 F901 E400 001E 0009"
  492.     $"FF01 C080 0018 7C03 C806 0300 1800 2719"
  493.     $"00E0 0401 8100 F800 001F E010 00C0 0800"
  494.     $"F000 8000 000E 0000 7C01 FE00 081C 0C01"
  495.     $"0006 0000 1000 2410 00C0 0000 8000 5000"
  496.     $"000F C010 0040 0800 60FD 0004 0E00 0018"
  497.     $"01FE 0004 1C06 0000 02FD 0016 0100 C0FD"
  498.     $"0004 4000 0005 80F7 0000 0CFA 0001 1804"
  499.     $"FA00 1401 0080 FD00 0340 0000 04F6 0000"
  500.     $"04FA 0000 10F9 0006 F800 0004 E500 A000"
  501.     $"83FF"
  502. };
  503.  
  504. resource 'BNDL' (128, "Bundle") {
  505.     '????',
  506.     0,
  507.     {    /* array TypeArray: 2 elements */
  508.         /* [1] */
  509.         'FREF',
  510.         {    /* array IDArray: 2 elements */
  511.             /* [1] */
  512.             0, 128,
  513.             /* [2] */
  514.             1, 129
  515.         },
  516.         /* [2] */
  517.         'ICN#',
  518.         {    /* array IDArray: 2 elements */
  519.             /* [1] */
  520.             0, 128,
  521.             /* [2] */
  522.             1, 0
  523.         }
  524.     }
  525. };
  526.  
  527. resource 'aete' (0, "Apple Events Terminology") {
  528.     0x0,
  529.     -0x70,
  530.     english,
  531.     roman,
  532.     {    /* array Suites: 1 elements */
  533.         /* [1] */
  534.         "Required Suite",
  535.         "Events that every application should sup"
  536.         "port",
  537.         'reqd',
  538.         1,
  539.         1,
  540.         {    /* array Events: 0 elements */
  541.         },
  542.         {    /* array Classes: 0 elements */
  543.         },
  544.         {    /* array ComparisonOps: 0 elements */
  545.         },
  546.         {    /* array Enumerations: 0 elements */
  547.         }
  548.     }
  549. };
  550.  
  551. resource 'vers' (2) {
  552.     0x2,
  553.     0x0,
  554.     release,
  555.     0x0,
  556.     verUS,
  557.     "2.0",
  558.     "DropShell 2.0"
  559. };
  560.  
  561.